// Package DTO
package com.cbs.management.mapper;
import java.io.Serializable;
import com.cbs.management.model.*;
import com.cbs.management.dto.*;
public class ApParamMapper  implements Serializable {
    public ApParam dtoToPersistence(ApParamDTO dto){
        if(dto == null){
           return null;
        }
        ApParam ret = new ApParam();
        ret.setId(dto.getId());
        ret.setType(dto.getType());
        ret.setValue(dto.getValue());
        ret.setCode(dto.getCode());
        ret.setStatus(dto.getStatus());
        return ret;
    }
    public ApParamDTO persistentToDto(ApParam model){
        if(model == null){
           return null;
        }
        ApParamDTO ret = new ApParamDTO();
        ret.setId(model.getId());
        ret.setType(model.getType());
        ret.setValue(model.getValue());
        ret.setCode(model.getCode());
        ret.setStatus(model.getStatus());
        return ret;
    }
    public ApParamMapper (){}
    
}    
